xend: Fix removing /vm/UUID/device paths when device cannot be disconnected
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 2 Mar 2009 10:34:37 +0000 (10:34 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 2 Mar 2009 10:34:37 +0000 (10:34 +0000)
commit8e3feb5145bbde1f01d001ce9574f67de87173f7
treef198c7cf3f33dfd200b7150d2b3557483964ddf9
parent353e3c0d57816a07282e008a1c3dcc1737f8d33f
xend: Fix removing /vm/UUID/device paths when device cannot be disconnected

Change deviceDestroy behavior to remove /vm/UUID/device/...
path only when force was used (as it already does so for both frontend
and backend) and do the removing from xen-hotplug-cleanup script when we
are sure the device is really not attached to the guest any more.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tools/hotplug/Linux/xen-hotplug-cleanup
tools/python/xen/xend/server/DevController.py